package com.itheima.mapper;

import com.itheima.pojo.EmpExpr;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmpExprMapper {
    //增加工作经历
    void saveBacth(@Param("exprList") List<EmpExpr> exprList);
    //删除员工经历
    void deleteByEmpIds(@Param("empIds")List<Integer> ids);

    @Select("select * from emp_expr where emp_id = #{empId}")
    List<EmpExpr> selectByEmpId(Integer empId);
}
